package only.my.railgunys.weapon;

import only.my.railgunys.bean.Character;
import only.my.railgunys.bean.Weapon;

public class SerpentSpine extends Weapon {

    public SerpentSpine(int refineLevel) {
        this.atk = 510.0;
        this.subStatValue = 27.6;
        this.refineLevel = refineLevel;
        this.name = "螭骨剑";
        this.code = 10;
    }

    @Override
    public Character subStatEnhance(Character character) {
        character.addCritRate(subStatValue);
        return character;
    }

    @Override
    public Character specialAbility(Character character) {
        double refine = 6 + (refineLevel - 1);
        character.addIncrease(refine*5);
        return character;
    }
}
